package com.lantosec.hmrp.modules.morality.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.morality.entity.MoralityNoteBaditem;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 一票认定差的追加记录 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="MoralityNoteBaditem对象", description="一票认定差的追加记录")
public class MoralityNoteBaditemVO extends BaseVO<MoralityNoteBaditem> {
    private static final long serialVersionUID = 1L;


    public MoralityNoteBaditemVO(MoralityNoteBaditem entity){
        this.noteBaditemId = entity.getNoteBaditemId();
        this.moralityNoteId = entity.getMoralityNoteId();
        this.moralityItemId = entity.getMoralityItemId();
        this.moralityStep = entity.getMoralityStep();
        this.createUserId = entity.getCreateUserId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
    }

    @Override
    public MoralityNoteBaditem convertToEntity(){
        return new MoralityNoteBaditem(this);
    }


    @ApiModelProperty(value = "追加记录ID")
    @TableId(value = "note_baditem_id", type = IdType.AUTO)
    private Integer noteBaditemId;

    @ApiModelProperty(value = "考评记录ID")
    private Integer moralityNoteId;

    @ApiModelProperty(value = "一票认定差的项目ID")
    private String moralityItemId;

    @ApiModelProperty(value = "追加时的考评环节")
    private Integer moralityStep;

    @ApiModelProperty(value = "添加人ID")
    private String createUserId;

    @ApiModelProperty(value = "添加人")
    private String createUser;

    @ApiModelProperty(value = "添加时间")
    private Date createTime;


}
